<template>
  <div class="app-container documentation-container">
    <!-- <dropdown-menu class="document-btn" :items="articleList" title="系列文章" /> -->
    <!-- <a class="document-btn" target="_blank" href="https://store.akveo.com/products/vue-java-admin-dashboard-spring?utm_campaign=akveo_store-Vue-Vue_demo%2Fgithub&utm_source=vue_admin&utm_medium=referral&utm_content=demo_English_button">Java backend integration</a>
    <a class="document-btn" target="_blank" href="https://panjiachen.github.io/vue-element-admin-site/">Documentation</a>
    <a class="document-btn" target="_blank" href="https://github.com/PanJiaChen/vue-element-admin/">Github Repository</a>
    <a class="document-btn" target="_blank" href="https://panjiachen.gitee.io/vue-element-admin-site/zh/">国内文档</a>
    <a class="document-btn" target="_blank" href="https://panjiachen.github.io/vue-element-admin-site/zh/job/">内推招聘</a> -->
    <!-- <u-editor :config="config" @ready="ready" @content="content"></u-editor>
    <baidu-map class="bm-view" ak="qQitzZlpz8mDhqaX4FTMobtfII24GE80" :center="center" :zoom="zoom" @ready="handler">
    </baidu-map> -->
  </div>
</template>

<script>
import DropdownMenu from '@/components/Share/DropdownMenu'
import UEditor from '@/components/UEditor'
import BaiduMap from 'vue-baidu-map/components/map/Map.vue'

export default {
  name: 'Documentation',
  components: { DropdownMenu, UEditor, BaiduMap },
  data() {
    return {
      articleList: [
        { title: '基础篇', href: 'https://juejin.im/post/59097cd7a22b9d0065fb61d2' },
        { title: '登录权限篇', href: 'https://juejin.im/post/591aa14f570c35006961acac' },
        { title: '实战篇', href: 'https://juejin.im/post/593121aa0ce4630057f70d35' },
        { title: 'vue-admin-template 篇', href: 'https://juejin.im/post/595b4d776fb9a06bbe7dba56' },
        { title: 'v4.0 篇', href: 'https://juejin.im/post/5c92ff94f265da6128275a85' },
        { title: '自行封装 component', href: 'https://segmentfault.com/a/1190000009090836' },
        { title: '优雅的使用 icon', href: 'https://juejin.im/post/59bb864b5188257e7a427c09' },
        { title: 'webpack4（上）', href: 'https://juejin.im/post/59bb864b5188257e7a427c09' },
        { title: 'webpack4（下）', href: 'https://juejin.im/post/5b5d6d6f6fb9a04fea58aabc' }
      ],
      config: {
        autoHeightEnabled: false,
        initialFrameHeight: 450,
        initialFrameWidth: '100%',
        zIndex: 5000,
        enableAutoSave: true,
        serverUrl: '/api/aliyun/ueditor'
      },
      center: {lng: 116.404, lat: 39.915},
      zoom: 18
    }
  },
  created () {},
  methods: {
    ready(editor) {
      console.log('editor:', editor)
    },
    content(html){
      console.log('html:', html)
    },
    handler ({BMap, map}) {
      console.log(BMap, map)
      // this.center.lng = 116.404
      // this.center.lat = 39.915
      // this.zoom = 15
    }
  }
}
</script>

<style lang="scss" scoped>
.bm-view {
  width: 100%;
  height: 300px;
}
.documentation-container {
  margin: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;

  .document-btn {
    flex-shrink: 0;
    display: block;
    cursor: pointer;
    background: black;
    color: white;
    height: 60px;
    padding: 0 16px;
    margin: 16px;
    line-height: 60px;
    font-size: 20px;
    text-align: center;
  }
}
</style>
